name: C/C++ CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: make
      run: source ./build.sh
    - name: tests
      run: source ./runtests.sh
    - uses: actions/upload-artifact@v1
      with:
        name: treasure
        path: artifacts
